package com.china08.yxyapi.entity.mg.esbag;

import java.util.Date;
import java.util.List;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * @author Richard.Wang 授课报告--随堂笔记
 * @descript
 */
@Document(collection = "yxy.tea.esbag.teaching.note.taking")
public class YxyEsbagTeachingNoteTaking extends MongoBaseEntityNoId {

    private static final long serialVersionUID = -295018179334903779L;

    /**
     * 授课包id+教师id</br>
     * example: 3434223_3423432423
     */
    @Id
    private String id;

    /**
     * 授课包id
     */
    @Field(value = "pack_id")
    private String packId;

    /**
     * 授课包名称
     */
    @Field(value = "pack_name")
    private String packName;

    /**
     * 授课教师id
     */
    @Indexed
    @Field(value = "teacher_id")
    private String teacherId;

    @Field(value = "teacher_nick")
    private String teacherNick;

    /**
     * 教师头像
     */
    @Field(value = "avantar")
    private String avantar;

    @Field(value = "school_id")
    private String schoolId;

    @Field(value = "school_nick")
    private String schoolNick;

    /**
     * 备授课时间
     */
    @Field(value = "pre_date")
    private Date preDate;

    /**
     * 授课时长, 使用秒进行记录.
     */
    @Field(value = "user_time")
    private Long userTime;

    /**
     * 授课班级
     */
    @Field(value = "class_id")
    private String classId;

    /**
     * 授课班级名称
     */
    @Field(value = "class_name")
    private String className;

    /**
     * 随堂笔记,存储的为图片的地址.
     */
    @Field(value = "note_taking")
    private List<Note> noteTaking;

    public static class Note {
        public String _id;
        public String url;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPackId() {
        return packId;
    }

    public void setPackId(String packId) {
        this.packId = packId;
    }

    public String getPackName() {
        return packName;
    }

    public void setPackName(String packName) {
        this.packName = packName;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public String getTeacherNick() {
        return teacherNick;
    }

    public void setTeacherNick(String teacherNick) {
        this.teacherNick = teacherNick;
    }

    public String getAvantar() {
        return avantar;
    }

    public void setAvantar(String avantar) {
        this.avantar = avantar;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getSchoolNick() {
        return schoolNick;
    }

    public void setSchoolNick(String schoolNick) {
        this.schoolNick = schoolNick;
    }

    public Date getPreDate() {
        return preDate;
    }

    public void setPreDate(Date preDate) {
        this.preDate = preDate;
    }

    public Long getUserTime() {
        return userTime;
    }

    public void setUserTime(Long userTime) {
        this.userTime = userTime;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public List<Note> getNoteTaking() {
        return noteTaking;
    }

    public void setNoteTaking(List<Note> noteTaking) {
        this.noteTaking = noteTaking;
    }

}
